package ThreadTest;

public class demo implements Runnable {
    private int i=10;
    @Override
    public void run() {

        for (int j=0;j<100;j++){
           if (this.i>0){
               System.out.println("i="+this.i--);
           }
        }
    }

    public static void main(String[] args) {
        demo demo = new demo();

        new Thread(demo).start();

        new Thread(demo).start();

        new Thread(demo).start();
    }
}
